/**
 *
 * @type {{template: string, computed: {href(): string}, data(): {}, props: string[]}}
 */
let cardLink = {
    template: `<a :href="href" target="_blank">预览卡片({{title}})</a>`,
    props:["id","title"],
    computed: {
        href(){
            return "http://mg.meiflower.top/cardview/index.html?id="+this.id;
        }
    },
    data() {
        return {}
    }
};

/**
 *
 * @type {{template: string, computed: {href(): string}, data(): {}, props: string[]}}
 */
window.$docsify.vueComponents['card-link'] = cardLink;